package ooday01;
/*
构造方法的演示
 */
public class ConsDemo {
    public static void main(String[] args) {
        Student student = new Student();
        student.name = "张三";
        student.age=23;
        student.className = "jsd2408";
        student.stuId = "001";
        student.sayHi();
        Student stu = new Student("李四", 24,
                "jsd2408", "002");
        stu.sayHi();
        Student stud = new Student("王五", 25,
                "jsd2408", "003");
        stud.sayHi();
    }
}
